package com.pass.four;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

/**
 * For q3
 * 
 * Write a line for each different lower left corner node.
 * 
 * # of lines == # of connected components
 * 
 * @author bh349
 */
public class PassFourReducer extends
		Reducer<Text, IntWritable, Text, IntWritable> {
	@Override
	protected void reduce(Text key, Iterable<IntWritable> values,
			Context context) throws IOException, InterruptedException {
		context.write(new Text("1"), new IntWritable(1));
	}
}
